<?php
defined( 'BASEPATH' ) or exit( 'No direct script access allowed' );
class MY_Config extends CI_Config
{
    public function site_url($uri = '', $protocol = NULL)
    {
        if (! empty( $uri ))
        {
            $URI = & load_class( 'URI' );            
            if (is_array( $uri ))
            {
                $uri = array (
                        $this->item( 'group_trigger' ) => $URI->logic_group 
                ) + $uri;
            }
            else
            {
                $uri = $URI->logic_group . '/' . trim( $uri, '/' );
            }
        }
        return parent::site_url( $uri, $protocol );
    }
}